package com.threeox.commonlibrary.util.sql.impl;

import com.threeox.commonlibrary.entity.engine.model.table.TableResultMessage;
import com.threeox.ormlibrary.inter.ISqlExecutor;

/**
 *
 * @ClassName: ITableSqlExecutor
 *
 * @Description: TODO()
 *
 * @author 赵屈犇
 *
 * @date 创建时间: 2018/6/13 12:24
 *
 * @version 1.0
 *
 */
public interface ITableSqlExecutor extends ISqlExecutor {


    /**
     * 查询表数据
     *
     * @param sql
     * @param countSql
     * @param clazz
     * @param selectionArgs
     * @param <T>
     * @return
     */
    <T> TableResultMessage<T> queryTableResult(String sql, String countSql , Class clazz, String... selectionArgs) throws Exception;

}
